public class Main {

    //晨跑问题
    //小蓝每个周六周天进行晨跑
    //每个月的1,11,21，31号也进行晨跑
    //已知2022.1.1这一天是周六
    //求2022年这一年小蓝晨跑了多少天
    public static void main(String[] args) {
        int[] ds = {0,31,28,31,30,31,30,31,31,30,31,30,31};
        int Z = 6;
        int count = 0;
        for (int y = 2022; y <=2022 ; y++) {//枚举年
            for (int m = 1; m <= 12; m++) {//枚举月
                int D = ds[m];
                //判断是否为闰年
                if(m == 2){
                    if(y % 4 == 0 && y % 100 != 0 || y % 400 == 0){
                        D = 29;
                    }
                }
                for (int d = 1; d <= D; d++) {//枚举日
                    if(d % 10 == 1){
                        count++;
                    }else if(Z == 6 || Z == 0){
                        count++;
                    }
                    Z = Z + 1;
//                    if(Z == 7) Z = 0;
                    Z = Z % 7;

                }
            }
        }
        System.out.println(count);
    }
}
